package net.xdclass.service;

import net.xdclass.controller.request.AccountLoginRequest;
import net.xdclass.controller.request.AccountRegisterRequest;
import net.xdclass.model.AccountDO;
import com.baomidou.mybatisplus.extension.service.IService;
import net.xdclass.util.JsonData;

/**
 * @author 二当家小D
 * @since 2022-06-14
 */
public interface AccountService extends IService<AccountDO> {

    /**
     * 用户注册
     * @param registerRequest
     * @return
     */
    JsonData register(AccountRegisterRequest registerRequest);

    /**
     * 用户登录
     * @param request
     * @return
     */
    JsonData login(AccountLoginRequest request);


}
